const { uploadRequest } = require('libraries/backend');

async function uploadLocalImage(imgFilePath) {
    const res = await uploadRequest({
        path: '/common/uploadfile',
        filepath: imgFilePath
    });
    return res.data;
}

module.exports = {
    uploadLocalImage
};
